package com.itheima.edu.info.manager.day5;

public class integer {
    public static void main(String[] args) {
        String s="11 22 33 44 55 66";
        /*String[] s1 = s.split(" ");
        int []arr =new int[s1.length];
        for (int i = 0; i < s1.length; i++) {
            System.out.print(s1[i]);
            arr[i] = Integer.parseInt(s1[i]);

        }
        System.out.println();
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }*/
        String[] s1 = s.split(" ");
        for (int i = 0; i < s1.length; i++) {
            System.out.println(s1[i]);
        }
        int [] arr=new int[s1.length];
        for (int i = 0; i < s1.length; i++) {
            arr[i]= Integer.parseInt(s1[i]);

        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }

    }


}
